package org.csmzxy.class2334;

public class zuidazhi {
    public static void main (String[] args){
        int[] arr = {52, 63, 1, 14, 36, 95, 6, 0, 27, 40};
        int zuidazhi = arr[0];
        int maxIndex = 0;

        for (int i = 0; i < arr.length; i++){
            if (arr[i] > zuidazhi){
                zuidazhi =arr[i];
                maxIndex = i;
            }
        }
        System.out.println("数组中的最大值是" + zuidazhi + "位于数组 的第" + (maxIndex + 1) + "个位置");
    }
}
